Northwind Test with Yukon

Products by Category View

Owner

dbo

Creation Date

10-07-2003 10:31:36

Remarks


Columns

NameTypeLengthIsNullableCollation
CategoryNamenvarchar30SQL_Latin1_General_CP1_CI_AS 
CategoryNamesysname30SQL_Latin1_General_CP1_CI_AS 
ProductNamenvarchar80SQL_Latin1_General_CP1_CI_AS 
ProductNamesysname80SQL_Latin1_General_CP1_CI_AS 
QuantityPerUnitnvarchar40SQL_Latin1_General_CP1_CI_AS 
QuantityPerUnitsysname40SQL_Latin1_General_CP1_CI_AS 
UnitsInStocksmallint2 
Discontinuedbit1 

View Definition

create view "Products by Category" AS
SELECT Categories.CategoryName, Products.ProductName, Products.QuantityPerUnit, Products.UnitsInStock, Products.Discontinued
FROM Categories INNER JOIN Products ON Categories.CategoryID = Products.CategoryID
WHERE Products.Discontinued <> 1
--ORDER BY Categories.CategoryName, Products.ProductName